







<div class="x-body">
    <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so search-form">
            <input class="layui-input"  autocomplete="off" placeholder="开始日" name="date1"  value="{:input('date1')}" id="start">
            <input class="layui-input"  autocomplete="off" placeholder="截止日" name="date2"  value="{:input('date2')}" id="end">
            <input type="text" name="search_data"  placeholder="转换账号|转换UID" autocomplete="off" value="{:input('search_data')}"  class="layui-input">
            <div class="layui-input-inline">
                <select name="form_wallet_id">
                    <option value="" >全部币种</option>
                    {volist name='wallet' id='vo'}
                    <option value="{$vo['id']}" {notempty name="param['form_wallet_id']"}{if condition="$param['form_wallet_id'] eq $vo['id']"} selected="selected" {/if}{/notempty} >{$vo['name']}</option>
                    {/volist}
                </select>
            </div>
            <div class="layui-input-inline">
                <select name="state" >
                    <option value="" >全部状态</option>
                    <option value="0" {if condition=" isset($param['state']) &&  $param['state'] eq '0'"} selected="selected" {/if}>待审核</option>
                    <option value="1" {notempty name="param['state']"}{if condition="$param['state'] eq 1"} selected="selected" {/if}{/notempty} >成功</option>
                    <option value="2" {notempty name="param['state']"}{if condition="$param['state'] eq 2"} selected="selected" {/if}{/notempty} >失败</option>
                </select>
            </div>
            <button class="layui-btn"  id="search"  url="{:url('wallet_currency_recharge_log')}"  lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
        </form>
    </div>
    <xblock>
        <!--<button class="layui-btn layui-btn-danger" onclick="delAll()"><i class="layui-icon"></i>批量删除</button>-->


        <ob_link> <button class="layui-btn export" url="{:url('exportWalletRechargeList')}"> 导 出</button></ob_link>
        <span class="x-right" style="line-height:40px;margin-right:10px;">共有数据：{$list.count} 条</span>
        <span class="x-right" style="line-height:40px; margin-right:10px;">总金额：{$list.ke}</span>
        <span class="x-right" style="line-height:40px; margin-right:10px;">充值ETH：{$list.eth}</span>
        <span class="x-right" style="line-height:40px; margin-right:10px;">充值BTC：{$list.btc}</span>
        <span class="x-right" style="line-height:40px; margin-right:10px;">到账USDT：{$list.usdt}</span>

    </xblock>
    <table class="layui-table x-admin">
        <thead>
        <tr >
            <th>序号</th>
            <th>ID</th>
            <th>用户账号</th>
            <th>用户UID</th>
            <th>币种</th>
            <th>充值金额</th>
            <th>到账金额</th>
            <th>支付截图</th>
            <th>状态</th>
            <th>提交时间</th>
            <th>审核时间</th>
            <th>审核人</th>
            <th>操作</th>
        </tr>
        </thead>
        {notempty name='list.list'}
        <tbody>
        {volist name='list.list' id='vo' key="k"}
        <tr>
            <td class="text-center">{$k}</td>
            <td class="text-center">{$vo.id}</td>
            <td class="text-center">{$vo.username}</td>
            <td class="text-center">{$vo.user_id}</td>
            <td class="text-center">{$vo->wallet->name}</td>
            <td class="text-center">{$vo.number}</td>
            <td class="text-center">{$vo.money}</td>
            <td class="text-center"> <a href="{$vo.cover_id|get_picture_url}" target="_blank"><img class="admin-list-img-size" src="{$vo.cover_id|get_picture_url}"/></a></td>
            <td class="text-center">{$vo.state_text}</td>
            <td class="text-center">{$vo.create_time}</td>
            <td class="text-center">{if condition="$vo['state'] eq 0"}-----{else/}{$vo.update_time|date='Y-m-d H:i:s',###}{/if}</td>
            <td class="text-center">{if condition="$vo['state'] eq 0"}-----{else/}{$vo.admin_name}{/if}</td>
            <td class="td-manage text-center">
                {if condition="$vo['state'] eq 0"}
                <ob_link><a title="审核通过" class="ajax-get"  href="{:url('recharge_check', array('id' => $vo['id'],'state'=>1,'recharge_type'=>1))}">
                    <i class="layui-icon">&#x1005;</i>
                </a></ob_link>
                <ob_link><a title="审核不通过" class="ajax-get"    href="{:url('recharge_check', array('id' => $vo['id'],'state'=>2,'recharge_type'=>1))}">
                    <i class="layui-icon">&#x1007;</i>
                </a></ob_link>
                {else/}
                -----
                {/if}




            </td>
        </tr>
        {/volist}
        {else/}
        <tbody><tr class="odd"><td colspan="12" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
        {/notempty}

        </tbody>
    </table>
    <div class="page">
        {notempty name='list.list'}   {$list.list->render()}{/notempty}
    </div>

</div>
<script>
    layui.use('laydate', function(){
        var laydate = layui.laydate;

        //执行一个laydate实例
        laydate.render({
            elem: '#start' //指定元素
        });

        //执行一个laydate实例
        laydate.render({
            elem: '#end' //指定元素
        });
    });








    //导出功能
    $(".export").click(function(){

        window.location.href = searchFormUrl($(".export"));
    });
</script>

</body>

</html>

